<%--
  Created by IntelliJ IDEA.
  User: Fan307
  Date: 2016/11/21
  Time: 15:08
  To change this template use File | Settings | File Templates.
--%>
<%--
    参考代码：http://blog.csdn.net/jrq/article/details/531671
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>addFolder.jsp</title>
</head>
<body>
<script type="text/javascript">
    function folder() {
        var foldername = document.getElementById("FolderName").value;
        alert(foldername);
        window.location.href="addCatagoryFolder1.jsp?Foldername=" + foldername;
    }
</script>
<ul>
    <li>添加Catagory分类下的文件夹<br>
        <input type="text" id="FolderName" /><br>
        <input type="button" value="点击创建" onclick="folder()" />
    </li><br>
    <li>添加School分类下的文件<br>
        <%--需要选择其父类文件夹<input type="button" value="点击选择" onclick="${pageContext.request.contextPath}/addSchoolFolderSerlvet"/>--%>
        需要选择父类文件夹<form action="${pageContext.request.contextPath}/addSchoolFolderSerlvet"> <button type="submit">确定</button> </form>

    </li><br>
    <li>添加Major分类下的文件夹<br>
        需要选择父类文件夹<form action="${pageContext.request.contextPath}/addMajorFolderSerlvet"> <button type="submit">确定</button> </form>
    </li><br>
    <li>添加Course分类下的文件夹<br>
        需要选择父类文件夹<form action="${pageContext.request.contextPath}/addCourseFolderSerlvet"> <button type="submit">确定</button> </form>
    </li><br>
</ul>

</body>
</html>
